11. C++ Comments

C++ Comments

ND213 C01 Comments How To Use Comments

You may have noticed comments in some of the code up until this point. C++ provides two kinds of comments:

// You can use two forward slashes for single line comments.

/*
For longer comments, you can enclose the text with an opening
slash-star and closing star-slash.
*/